BEGIN BEGIN pattern BEGIN { action } The action(s) associated with the BEGIN pattern are executed once prior to opening the first input file. There may be multiple BEGIN { action } combinations. Each action is executed in the order in which it is specified.